<?php
namespace Home\Model;
use Think\Model;

class ProjectGroupModel extends Model {
	protected $_map = array(
        'pid' =>'project_id',
    );
	// 定义自动验证
    protected $_validate    =   array(
        array('project_id','require','所属项目不能为空'),
        array('group_name','require','分组名不能为空'),
    );

    protected $_auto = array(
    	array('create_time','time',1,'function'),
    );
}